<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title><?php if($title != '') { echo $title . ' / ';} echo $this->design->title();?></title>
	
	<link type="text/css" href="<?=base_url()?>reset.css" rel="stylesheet" />
	<link type="text/css" href="<?=base_url()?>960.css" rel="stylesheet" />
	<link type="text/css" href="<?=base_url()?>style.css" rel="stylesheet" />
	<link rel="stylesheet" href="http://dev.jquery.com/view/tags/ui/latest/themes/flora/flora.datepicker.css" type="text/css" media="screen" title="Flora (Default)">

	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="http://dev.jquery.com/view/tags/ui/latest/ui/ui.datepicker.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
		$("#thread_all li:nth-child(3n) + li").addClass("clearf");
		
		$("#resetlink, #no").click(function () {
		  $("#reset").slideToggle("fast");
		});

		});
	</script>

	<?=$headers?>
	
</head>
<body class="container_16">
	<div id="mainnav">
		<div>
			<h1 class="grid_5"><?php echo $this->design->title(); $this->design->dashlink() ?></h1>
			<ul class="prefix_5 grid_6">
				<li><?=anchor('designs', 'designs')?></li>
				<li><?=anchor('discussions', 'discussions')?></li>
				<li><?=anchor('todos', 'todos')?></li>
				<li><?=anchor('files', 'files')?></li>
			</ul>
		</div>
	</div>
	<div id="second">
		<div  class="clearf">
		<ul id="tabs" class="grid_16">
			<?php foreach($tabs as $tab) { ?>
				<li> <?=$tab?> </li>
			<?php } ?>
		</ul>
		<div id="acc">
		<ul>
		<?php 
		echo '<li>' . anchor('logout', 'logout') . '</li>';
		if ($this->users->isAdmin($this->users->user)) {
		echo '<li>' . anchor('people', 'Manage users') . '</li>';
		echo '<li>' . anchor('project', 'Mange project') . '</li>';
		} 
		elseif ($this->uri->segment(1) == 'project' || $this->uri->segment(1) == 'people'){
		echo '<li>' . anchor('people', 'Manage users') . '</li>';
		echo '<li>' . anchor('project', 'Mange project') . '</li>';
		} 
		?>
		</div>
		
		</div>
	</div>
	<div id="content" class="clearfix">
		<?=$content?>
	</div>
</body>
</html>